import mitt from "mitt";

//创建emitters
const emitter = mitt()

emitter.on('hello', function () {
    console.log('emitter的hello事件触发', arguments)
})

console.log(emitter.all,'all')

setInterval(() => {
    emitter.emit('hello')
},1000)

export default emitter